Skip to content

ci: CI-hygiene pass — a2ml identity, codeql, secret gates, e2e test fix - #16

Merged
hyperpolymath merged 3 commits into
mainfrom
claude/gallant-faraday-LSAGJ
Jun 13, 2026
Merged

hyperpolymath merged 3 commits into
mainfrom
claude/gallant-faraday-LSAGJ

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

CI-hygiene pass on top of the 06-12 standardization (PR #15, already merged to main).

  • A2ML identity conformance — added name, project, schema_version fields to all 27 .a2ml files that lacked them (contractiles, bot_directives, 6a2/*, CLADE, anchor manifests, root 0-AI-MANIFEST). All files now have SPDX header + identity + version.
  • CodeQL language — switched from javascript-typescript (no JS/TS source → "no source files" every run) to actions (scans workflow files, per Hypatia recommendation).
  • Secret presence gates — mirror.yml: each ssh-agent + mirror step now guarded by if: ${{ secrets.X_SSH_KEY != '' }}; instant-sync.yml: FARM_DISPATCH_TOKEN step gated + orphaned K9-SVC step (floating at jobs level — invalid YAML) moved inside the dispatch job.
  • CODEOWNERS — stale root contractiles/ path updated to .machine_readable/contractiles/ (06-12 flat layout).
  • e2e test fix — test/e2e_test.jl:22: all(u .>= 0.0 for u in sol.u) → all(all(u .>= 0.0) for u in sol.u). The 124 main testset tests all pass on CI; only this e2e assertion throws TypeError: non-boolean (BitVector) used in boolean context because sol.u is Vector{Vector{Float64}}.

Test plan

  • Dogfood Gate / Validate A2ML manifests — expect 0 errors (was: "Missing required identity field")
  • Dogfood Gate / Validate K9 contracts — k9 files already had pedigree.metadata.name; expect pass unchanged
  • CodeQL analyze (actions) — expect green (was: "no source files" on javascript-typescript)
  • CI Julia 1.10 ubuntu — expect green (e2e BitVector fix closes the one errored test; 124+17 tests all pass)
  • CI Julia 1.x ubuntu/macos/windows — expect green (same fix applies)
  • mirror.yml / instant-sync.yml — secret presence gates; no functional change when secrets are absent

Notes

  • julia-actions/CompatHelper@v1 SHA could not be resolved from this environment; left unpinned with note in commit message (advisory, not blocking).
  • scorecard_publish_with_run_step Hypatia finding noted as follow-up; not trivially fixable in this pass.
  • K9 files already had real pedigree.metadata.name values — no changes needed.

https://claude.ai/code/session_01PWMMxryCcPrAjJ8tuGvygG


Generated by Claude Code

claude added 3 commits June 13, 2026 09:20
Add identity fields (name, project, schema_version) to all .a2ml files
that lacked them — contractiles (Adjust/Bust/Dust/Intent/Must/Trust),
bot_directives (coverage, debt, git-private-farm, gitbot-fleet, hypatia,
methodology), 6a2 (AGENTIC, ECOSYSTEM, NEUROSYM, PLAYBOOK, anchor/*,
0-AI-MANIFEST), CLADE, and root 0-AI-MANIFEST. Also add SPDX headers to
the markdown-format manifests and anchor files.

CODEOWNERS: update stale root `contractiles/` path to
`.machine_readable/contractiles/` (the flat 06-12 estate layout).

CodeQL: switch matrix language from `javascript-typescript` to `actions`
— no JS/TS source in this repo; `actions` scans workflow files per
Hypatia recommendation.

CompatHelper: `julia-actions/CompatHelper@v1` could not be SHA-pinned
(registry unreachable from this environment); left as-is with this note.

https://claude.ai/code/session_01PWMMxryCcPrAjJ8tuGvygG
mirror.yml: add `if: \${{ secrets.X_SSH_KEY != '' }}` guards to each
ssh-agent step and mirror step that references a secret, so jobs skip
gracefully when secrets are absent rather than failing.

instant-sync.yml: add presence gate for FARM_DISPATCH_TOKEN on the
Trigger Propagation step; also move the orphaned K9-SVC Validation step
(which was floating at the jobs level — invalid YAML) inside the
dispatch job.

https://claude.ai/code/session_01PWMMxryCcPrAjJ8tuGvygG
all(u .>= 0.0 for u in sol.u) fails on Julia 1.10 with
  TypeError: non-boolean (BitVector) used in boolean context
because sol.u is Vector{Vector{Float64}}, so each u .>= 0.0 is a
BitVector. Fix: all(all(u .>= 0.0) for u in sol.u).

The 124 @testset tests all pass; only this e2e assertion was broken.

https://claude.ai/code/session_01PWMMxryCcPrAjJ8tuGvygG
@github-actions

Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 19 issues detected

Severity Count
🔴 Critical 0
🟠 High 13
🟡 Medium 6
View findings
[
  {
    "reason": "Action julia-actions/CompatHelper@v1 needs attention",
    "type": "unpinned_action",
    "file": "CompatHelper.yml",
    "action": "pin_sha",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "codeql.yml lists `language: javascript-typescript` but the repo has no source files in any CodeQL-scannable language. The analyze job will exit 'no source files' on every run. Switch the matrix to `actions` (which scans workflow files — every repo has those).",
    "type": "codeql_language_matrix_mismatch",
    "file": "codeql.yml",
    "action": "switch_codeql_matrix_to_actions",
    "rule_module": "workflow_audit",
    "severity": "high"
  },
  {
    "reason": "Issue in scorecard-enforcer.yml",
    "type": "scorecard_publish_with_run_step",
    "file": "scorecard-enforcer.yml",
    "action": "split_scorecard_publish_job",
    "rule_module": "workflow_audit",
    "severity": "high"
  },
  {
    "reason": "Issue in codeql.yml",
    "type": "codeql_missing_actions_language",
    "file": "codeql.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Nominal-only SAST in Cliodynamics.jl: codeql.yml language matrix contains no language present in the repo and lacks `actions`, so CodeQL records zero results on every commit. Remediation: set the CodeQL matrix to `language: actions`.",
    "type": "StaticAnalysis",
    "file": "/home/runner/work/Cliodynamics.jl/Cliodynamics.jl",
    "action": "auto_fix",
    "rule_module": "scorecard",
    "severity": "medium",
    "remediation": "Add CodeQL or equivalent SAST workflow.",
    "scorecard_check": "SAST"
  },
  {
    "reason": "1 workflow(s) with tag-pinned (not SHA-pinned) actions in Cliodynamics.jl",
    "type": "DependencyPinning",
    "file": "/home/runner/work/Cliodynamics.jl/Cliodynamics.jl",
    "action": "auto_fix",
    "rule_module": "scorecard",
    "severity": "medium",
    "remediation": "Pin GitHub Actions and Docker base images by SHA hash.",
    "scorecard_check": "Pinned-Dependencies"
  },
  {
    "reason": "Repository has 5 non-main remote branch(es). Policy: single main branch only.",
    "type": "GS007",
    "file": ".",
    "action": "delete_remote_branches",
    "rule_module": "git_state",
    "severity": "medium"
  },
  {
    "reason": "Code scanning (Hypatia): hypatia/workflow_audit/secret_action_without_presence_gate -- Hypatia workflow_audit: secret_action_without_presence_gate -- 1 day(s) old",
    "type": "CSA001",
    "file": "mirror.yml",
    "action": "update",
    "rule_module": "code_scanning_alerts",
    "severity": "high"
  },
  {
    "reason": "Code scanning (Hypatia): hypatia/workflow_audit/secret_action_without_presence_gate -- Hypatia workflow_audit: secret_action_without_presence_gate -- 1 day(s) old",
    "type": "CSA001",
    "file": "mirror.yml",
    "action": "update",
    "rule_module": "code_scanning_alerts",
    "severity": "high"
  },
  {
    "reason": "Code scanning (Hypatia): hypatia/workflow_audit/secret_action_without_presence_gate -- Hypatia workflow_audit: secret_action_without_presence_gate -- 1 day(s) old",
    "type": "CSA001",
    "file": "mirror.yml",
    "action": "update",
    "rule_module": "code_scanning_alerts",
    "severity": "high"
  }
]

Powered by Hypatia Neurosymbolic CI/CD Intelligence

@hyperpolymath
hyperpolymath marked this pull request as ready for review June 13, 2026 12:01
@hyperpolymath
hyperpolymath merged commit f0379e6 into main Jun 13, 2026
13 of 17 checks passed
@hyperpolymath
hyperpolymath deleted the claude/gallant-faraday-LSAGJ branch June 13, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants